package com.banyuan.HomeWork.classrelated.seven;

public class MultiFuncation {
    private int i1;
    private int i2;

    private double d1;
    private double d2;
    private double d3;

    private String s1;
    private String s2;

    public MultiFuncation(int i1, int i2) {
        this.i1 = i1;
        this.i2 = i2;
        System.out.println(i1 > i2 ? i1 : i2);
    }

    public MultiFuncation(double d1, double d2, double d3) {
        this.d1 = d1;
        this.d2 = d2;
        this.d3 = d3;
        System.out.println(d1 * d2 * d3);
    }

    public MultiFuncation(String s1, String s2) {
        this.s1 = s1;
        this.s2 = s2;
        System.out.println(s1.equals(s2));
    }
}
